package com.itheima.inputstream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/*
文件字节输入流
 */
public class Demo01 {

    public static void main(String[] args) throws IOException {
        //创建输入流对象
        FileInputStream fis = new FileInputStream("day12\\aaa\\abc.txt");
        //读数据
        //接受数据的字节
        int b;
        while ((b=fis.read())!=-1){
            System.out.println(b);

        }
       /* while(true){
            int c=fis.read();
            if(c==-1){
                break;
            }
            System.out.println(c);

        }*/

        //释放资源
       fis.close();

    }
}
